<!--
 * @Author: your name
 * @Date: 2021-08-19 19:14:11
 * @LastEditTime: 2021-08-24 19:41:24
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \宏烨找房\client-applet\src\views\search\index.vue
-->
<!--  -->
<template>
  <div class="search">
    <div class="header">
      <div class="seat">
        <van-icon name="search" />
        <input type="text" placeholder="请输入小区或地址" />
      </div>
      <span class="quxiao" @click="gosearch">取消</span>
    </div>
    <div class="main"></div>
  </div>
</template>

<script>
// import { Toast } from "vant";
export default {
  //import引入的组件需要注入到对象中才能使用
  components: {},
  data() {
    //这里存放数据
    return {};
  },
  //监听属性 类似于data概念
  computed: {},
  //监控data中的数据变化
  watch: {},
  //方法集合
  methods: {
    gosearch() {
      this.$router.go(-1);
    },
  },
  //生命周期 - 创建完成（可以访问当前this实例）
  created() {},
  //生命周期 - 挂载完成（可以访问DOM元素）
  mounted() {},
};
</script>
<style lang="scss" scoped>
.search {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  .header {
    width: 100%;
    height: 50px;
    background: #f6f5f6;
    display: flex;
    align-items: center;
    padding: 0 10px;
    justify-content: space-between;
    .seat {
      display: flex;
      flex: 1;
      height: 30px;
      background: #fff;
      margin: 0 10px;
      border-radius: 5px;
      .van-icon-search {
        font-size: 16px;
        padding: 7px 5px;
      }
      input {
        border: none;
        width: 90%;
        height: 30px;
      }
    }
    .quxiao {
      font-size: 15px;
      color: #6b7072;
    }
  }
  .main {
    width: 100%;
    flex: 1;
    overflow-y: auto;
  }
}
</style>
